package week3;

import java.util.Random;

/**
 * Created by mc on 2017/3/11.
 */
class pai{
    String color;
    int shuzi;
}
public class test2 {
    public static void main(String[] arge) {
        int a,b,c,d,e;
        pai m = new pai();
        for(a=0;a<52;a=a+1)
        {
            c=(int)(Math.random()*4); //这个并不随机
            d=(int)(Math.random()*13);//这个并不随机
            switch(c){
                case 0:m.color="黑";
                case 1:m.color="红";
                case 2:m.color="花";
                case 3:m.color="片";
            }
            switch(d){
                case 0:m.shuzi=1;
                case 1:m.shuzi=2;
                case 2:m.shuzi=3;
                case 3:m.shuzi=4;
                case 4:m.shuzi=5;
                case 5:m.shuzi=6;
                case 6:m.shuzi=7;
                case 7:m.shuzi=8;
                case 8:m.shuzi=9;
                case 9:m.shuzi=10;
                case 10:m.shuzi=11;
                case 11:m.shuzi=12;
                case 12:m.shuzi=13;
            }
        }
        System.out.printf("%s %d,",m.color,m.shuzi);
    }
}
